package com.sfddata.musicpillow.user.service.impl;

import com.sfddata.musicpillow.common.utils.PageUtils;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sfddata.musicpillow.common.utils.PageUtils;
import com.sfddata.musicpillow.common.utils.Query;

import com.sfddata.musicpillow.user.dao.QuestionImgDao;
import com.sfddata.musicpillow.user.entity.QuestionImgEntity;
import com.sfddata.musicpillow.user.service.QuestionImgService;


@Service("questionImgService")
public class QuestionImgServiceImpl extends ServiceImpl<QuestionImgDao, QuestionImgEntity> implements QuestionImgService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<QuestionImgEntity> page = this.page(
                new Query<QuestionImgEntity>().getPage(params),
                new QueryWrapper<QuestionImgEntity>()
        );

        return new PageUtils(page);
    }

}